package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.OrdOrderItemMapper;
import com.ruoyi.order.domain.OrdOrderItem;
import com.ruoyi.order.service.IOrdOrderItemService;

/**
 * 订单商品信息表Service业务层处理
 * 
 * @author wpf
 * @date 2023-05-19
 */
@Service
public class OrdOrderItemServiceImpl implements IOrdOrderItemService 
{
    @Autowired
    private OrdOrderItemMapper ordOrderItemMapper;

    /**
     * 查询订单商品信息表
     * 
     * @param id 订单商品信息表主键
     * @return 订单商品信息表
     */
    @Override
    public OrdOrderItem selectOrdOrderItemById(Long id)
    {
        return ordOrderItemMapper.selectOrdOrderItemById(id);
    }

    /**
     * 查询订单商品信息表列表
     * 
     * @param ordOrderItem 订单商品信息表
     * @return 订单商品信息表
     */
    @Override
    public List<OrdOrderItem> selectOrdOrderItemList(OrdOrderItem ordOrderItem)
    {
        return ordOrderItemMapper.selectOrdOrderItemList(ordOrderItem);
    }

    /**
     * 新增订单商品信息表
     * 
     * @param ordOrderItem 订单商品信息表
     * @return 结果
     */
    @Override
    public int insertOrdOrderItem(OrdOrderItem ordOrderItem)
    {
        return ordOrderItemMapper.insertOrdOrderItem(ordOrderItem);
    }

    /**
     * 修改订单商品信息表
     * 
     * @param ordOrderItem 订单商品信息表
     * @return 结果
     */
    @Override
    public int updateOrdOrderItem(OrdOrderItem ordOrderItem)
    {
        return ordOrderItemMapper.updateOrdOrderItem(ordOrderItem);
    }

    /**
     * 批量删除订单商品信息表
     * 
     * @param ids 需要删除的订单商品信息表主键
     * @return 结果
     */
    @Override
    public int deleteOrdOrderItemByIds(Long[] ids)
    {
        return ordOrderItemMapper.deleteOrdOrderItemByIds(ids);
    }

    /**
     * 删除订单商品信息表信息
     * 
     * @param id 订单商品信息表主键
     * @return 结果
     */
    @Override
    public int deleteOrdOrderItemById(Long id)
    {
        return ordOrderItemMapper.deleteOrdOrderItemById(id);
    }
}
